package com.grao.waterschool.human.manager.service;

import com.grao.waterschool.human.common.PageResult;
import com.grao.waterschool.human.entiry.LogParam;
import com.grao.waterschool.human.entiry.po.LogOperation;
import com.grao.waterschool.human.entiry.po.Logon;

/**
 * @author limk
 */
public interface LogService {

    /**
     * 记录登录日志
     */
    void logon(String username, String device, String clientIp);

    /**
     * 记录操作日志
     */
    void logOperation(LogOperation log);

    /**
     * 登录日志
     */
    PageResult<Logon> selectLogonListPage(LogParam param);

    /**
     * 操作日志
     */
    PageResult<LogOperation> selectLogOperationListPage(LogParam param);
}
